package com.tony.mindhr.mapper;

import com.tony.mindhr.model.MenuRole;
import org.apache.ibatis.annotations.Param;

/**
 * Created with IntelliJ IDEA.
 *
 * @Title: MenuRoleMapper
 * @Auther: 皮蛋布丁
 * @Date: 2021/04/19/14:08
 * @Description:
 */
public interface MenuRoleMapper {

    int deleteByPrimaryKey(Integer id);

    int insert(MenuRole record);

    int insertSelective(MenuRole record);

    MenuRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MenuRole record);

    int updateByPrimaryKey(MenuRole record);

    /**
    * @Description: deleteByRid 根据用户id删除菜单
    * @Param: [rid]
    * @return: void
    * @Author: 皮蛋布丁
    * @Date: 2021/6/3 21:07
    */
    void deleteByRid(Integer rid);

    /**
    * @Description: insertRecord 根据用户id插入菜单
    * @Param: [rid, mids]
    * @return: java.lang.Integer
    * @Author: 皮蛋布丁
    * @Date: 2021/6/3 21:07
    */
    Integer insertRecord(@Param("rid") Integer rid,@Param("mids") Integer[] mids);
}
